﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FastMemberAdd.aspx.cs" Inherits="Admin_Trade_FastMemberAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>快速添加会员</title>
    <link rel="stylesheet" href="../skin/style.css" type="text/css" />
    <script type="text/javascript">
       function $(id)
       {
          return document.getElementById(id);
       }
       function check()
       {
          if($("txtLoginName").value=="")
          {
            document.getElementById("name").innerHTML="登录名不能为空";
            return false;
          }
          if($("txtPassword").value=="")
          {
            document.getElementById("psd").innerHTML="密码不能为空";
            return false;
          }
          if($("txtPassword2").value==""||$("txtPassword2").value!=$("txtPassword").value)
          {
            document.getElementById("psd1").innerHTML="密码不一致";
            return false;
          }
          if($("txtEmail").value=="")
          {
            $("email").innerHTML="电子邮箱不能为空";
            return false;
          }
          if($("txtCompanyName").value=="")
          {
             $("company").innerHTML="公司名称不能为空";
             return false;
          }
       }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="talbe_border marie">
            <table cellspacing="0" cellpadding="0" border="0" class="talbe_list">
                <tr>
                    <th colspan="2" class="header tou">
                        快速添加会员</th>
                </tr>
                <tr>
                    <td width="35%" class="left1">
                        登录名</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtLoginName" runat="server" Width="250px"></asp:TextBox></span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLoginName"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                            <div id="name" style="color:Red;"></div>
                            </td>
                </tr>
                <tr>
                    <td class="left1">
                        密码</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtPassword" runat="server" Width="250" TextMode="Password"></asp:TextBox></span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                            ErrorMessage="*"></asp:RequiredFieldValidator><div id="psd" style="color:Red;"></div></td>
                </tr>
                <tr>
                    <td class="left1">
                        确认密码</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtPassword2" runat="server" Width="250" TextMode="Password"></asp:TextBox></span>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                            ControlToValidate="txtPassword2" ErrorMessage="两次密码不一致!"></asp:CompareValidator><div id="psd1" style="color:Red;"></div></td>
                </tr>
                <tr>
                    <td class="left1">
                        电子邮箱</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtEmail" runat="server" Width="250"></asp:TextBox></span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="*"></asp:RequiredFieldValidator><div id="email" style="color:Red;"></div></td>
                </tr>
                <tr>
                    <td class="left1">
                        公司名称</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtCompanyName" runat="server" Width="250"></asp:TextBox></span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCompanyName"
                            ErrorMessage="*"></asp:RequiredFieldValidator><div id="company" style="color:Red;"></div></td>
                </tr>
                <tr align="center">
                    <td colspan="2" bgcolor="#F0F7FD">
                        <asp:Button ID="btnSave" runat="server" Text="下一步" CssClass="i_button" OnClientClick="javascript: return check()" OnClick="btnSave_Click" />
                        <asp:Button ID="btnCancel" runat="server" Text="重置" CssClass="i_button" OnClick="btnCancel_Click" CausesValidation="False" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
